//
//  NSIndexPath+Menu.m
//  FunnyVideo
//
//  Created by 李鑫 on 15/11/6.
//  Copyright © 2015年 NewEggTech. All rights reserved.
//
#import "AVOSManger.h"
#import "NSIndexPath+Menu.h"

@implementation NSIndexPath (Menu)
+ (NSIndexPath *)indexPathForVideoType:(AVOSVideoType)videotype{
   NSUInteger index = [[AVOSManger sharedManger] indexOfVideoType:videotype];
    NSUInteger section  = index/3;
    
    NSUInteger row = index % 3;
    
    NSIndexPath *indexPath = [NSIndexPath indexPathForItem:row inSection:section];
    
    return indexPath;
}
@end
